﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Yield.aspx.cs" Inherits="Admin_Yield" Title="Admin ~ Yield" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                               
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading " align="left">YIELD</td>
                                                <td align="left"><asp:Label ID="lblMessage" runat="server" CssClass="messageLabel"></asp:Label></td>
                                                 <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>                                        
                                            </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                               <tr id="trYieldTextBox" runat="server" >
                                    <td>
                                        <table >
                                             <tr class="altanateAshBkg" id="trUserCode" runat="server" visible="false" >
                                    <td class='label' style="width: 120px">Id</td>
                                    <td><asp:TextBox ID="txtYieldId" runat="server" cssclass='textBox' Width='150px' 
                                            MaxLength="50"></asp:TextBox></td>
                                </tr> 
                                                               
                                <tr>
                                    <td colspan="2">
                                        <table style="width: 868px" >
                                           
                                            <tr class="ashBkg">
                                            
                                                    <td class='label' style="width: 74px">Gas (wt%)</td>
                                                    <td><asp:TextBox ID="txtGas" runat="server" cssclass='textBox' Width='35px' MaxLength="100"></asp:TextBox></td>
                                                    <td class='label' style="width: 78px">Liquid&nbsp; (wt%)</td>
                                                    <td><asp:TextBox ID="txtLiquid" runat="server" cssclass='textBox' Width='35px' 
                                                            MaxLength="10"></asp:TextBox></td>
                                                    <td class='label' style="width: 79px">Chr (wt%)</td>
                                                    <td><asp:TextBox ID="txtChr" runat="server" cssclass='textBox' Width='35px' 
                                                            MaxLength="100"></asp:TextBox></td>
                                                    
                                                    <td class='label' style="width: 79px">Tar (wt%)</td>
                                                    <td><asp:TextBox ID="txtTar" runat="server" cssclass='textBox' Width='35px' 
                                                            MaxLength="100"></asp:TextBox></td>
                                                    
                                            </tr>
                                            
                                           
                                            
                                        </table>
                                    </td>
                                </tr>   
                                
                                <tr class="altanateAshBkg ">
                                    <td colspan="2">
                                        <table >
                                            <tr>
                                                <td>
                                                  <asp:ImageButton ID="ImageButton1" runat="server" 
                                            ImageUrl="~/Images/btnSave.jpg" onclick="ImageButton1_Click" />
                                                </td>
                                                <td>
                                                <asp:Button ID="btnPrevious" Text="Previous Record" runat="server" 
                                                        CssClass="button" onclick="btnPrevious_Click" Visible="False" />
                                                </td>
                                            </tr>
                                        </table>
                                    
                                      
                                    
                                    </td>
                                 </tr> 
                                        </table>
                                    </td>                                
                                </tr>
                                                                                          
                                <tr id="trYieldDg" runat="server">
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgYield" 
                                            runat="server" onrowediting="dgYield_RowEditing" 
                                            onpageindexchanging="dgYield_PageIndexChanging">
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                            
                                                <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="gas" HeaderText="Gas"/>
                                                <asp:BoundField  DataField="chr" HeaderText="CHR" />
                                                <asp:BoundField  DataField="liquid" HeaderText="Liquid" />
                                                <asp:BoundField  DataField="tar" HeaderText="TAR"/>                                                                                           
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr> 
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 
 
</asp:Content>

